package com.song.springcloud;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(scanBasePackages = {"com.song.springcloud"})   //fallbackFactory找不到时候，路径找不到，扫描服务降级时api模块的fallbackFactory实现类
@EnableEurekaClient
@EnableFeignClients(basePackages = {"com.song.springcloud.service"})
@EnableHystrixDashboard  //开启流监控  启动7001、0004、9001 访问豪猪监控路径：http://localhost:9001/hystrix
public class UserConsumer_dashboard_9001 {
    public static void main(String[] args) {
        SpringApplication.run(UserConsumer_dashboard_9001.class,args);
        System.out.println("custumer_dashboard_9001启动了！");
    }
}
